package com.gxa.jjty.core.pojo;


import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * @author asus
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel
@Table(name = "bill")
public class Bill implements Serializable {

  @Id
  @GeneratedValue(strategy = GenerationType.IDENTITY)
  @ApiModelProperty(value = "ID")
  private Long id;

  @ApiModelProperty(value = "支出")
  @Column(name = "expend")
  private Double expend;
  @Column(name = "income")
  @ApiModelProperty(value = "收入")
  private Double income;
  @Column(name = "rise_time")
  @ApiModelProperty(value = "生成时间")
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
  private Date riseTime;

  @Column(name = "order_number")
  @ApiModelProperty(value = "残疾人id")
  private String orderNumber;

  @Column(name = "trade_type")
  @ApiModelProperty(value = "交易类型")
  private String type;

  @Column(name = "balance")
  private Double balance;



}
